package Guo.guowantong.springsecurity_04.controller;

import Guo.guowantong.springsecurity_04.entity.SysPermissionRole;
import Guo.guowantong.springsecurity_04.service.SysPermissionRoleService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 权限角色表(SysPermissionRole)表控制层
 *
 * makejava
 * 2021-06-17 17:30:26
 */
 ("sysPermissionRole")
public class SysPermissionRoleController {
    /**
     * 服务对象
     */
    private SysPermissionRoleService sysPermissionRoleService;

    /**
     * 通过主键查询单条数据
     *
     * id 主键
     * 单条数据
     */
     ("selectOne/{id}")
    public SysPermissionRole selectOne(@PathVariable(name="id") Long id) {
        return this.sysPermissionRoleService.queryById(id);
    }

}